﻿using SqlSugar;

namespace Infov1.Models.WorkRecord
{
    /// <summary>
    /// 工作记录使用的简化客户信息
    /// </summary>
    [SugarTable("k_customer_info")]
    public class WorkRecordCustomerModel
    {
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        [SugarColumn(ColumnName = "customer_code")]
        public string CustomerCode { get; set; }

        [SugarColumn(ColumnName = "company_name")]
        public string CompanyName { get; set; }

        // 重写 ToString 方法，返回客户编码
        public override string ToString()
        {
            return CustomerCode;
        }
    }
}